<template>
  <div class="block">
    <div :style="{width: panelWidth}" class="flex flex-h">
      <div v-for="(item, index) in items" :key="index">
        <div>
          <img :src="item.img" class="item-image" :style="{width: itemWidth}">
          <slot  :item="item">
            give you color see
          </slot >
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { Card } from 'element-ui'
export default {
  props: {
    panelWidth: '',
    itemWidth: '',
    items: ''
  },
  components: {
    elCard: Card
  },
  mounted () {
  },
  data () {
    return {

    }
  }
}
</script>

<style scoped>
.item-image {
  display: block;
}
</style>
